/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kungkhies.desktop.ilo.viewer;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import org.openide.awt.ActionID;
import org.openide.awt.ActionRegistration;
import org.openide.util.NbBundle.Messages;
import org.openide.windows.WindowManager;

/**
 *
 * @author clayton
 */
@ActionID(id="com.kungkhies.desktop.ilo.viewer.IloNewAction", category="File")
@ActionRegistration(displayName="#CTL_IloNewAction")
@Messages("CTL_IloNewAction=Refresh")
public final class IloNewAction implements ActionListener {

    @Override
    public void actionPerformed(ActionEvent e)
    {
        IloViewerTopComponent tc = (IloViewerTopComponent) WindowManager.getDefault().findTopComponent("IloViewerTopComponent");
        tc.resetFields();
        tc.open();
        tc.requestActive();
    }
        
}
